<script template type="text/html">
    <link rel="stylesheet" href="{{ layui.setter.paths.core }}css/login.css?v={{ layui.admin.v }}" media="all">
</script>

<div class="layadmin-user-login layadmin-user-display-show" style="display: none;">
    <div class="layadmin-user-login-main">
        <div class="layadmin-user-login-box layadmin-user-login-header">
            <h2>登录</h2>
            <p></p>
        </div>
        <div class="layadmin-user-login-box layadmin-user-login-body layui-form" lay-filter="loginPage">
            <div class="layui-form-item">
                <label class="layadmin-user-login-icon layui-icon layui-icon-username"
                       for="LAY-user-login-username"></label>
                <input class="layui-input" lay-verify="required" name="username" placeholder="用户名" type="text">
            </div>
            <div class="layui-form-item">
                <label class="layadmin-user-login-icon layui-icon layui-icon-password"
                       for="LAY-user-login-password"></label>
                <input class="layui-input" lay-verify="required" name="password" placeholder="密码" type="password">
            </div>
            <div id="loginView"></div>
            <div class="layui-form-item" style="margin-bottom: 20px;">
                <input lay-skin="primary" name="keep" title="记住密码" type="checkbox" value="1">
<!--                <a class="layadmin-user-jump-change layadmin-link" lay-href="/user/forget" style="margin-top: 7px;">忘记密码？</a>-->
            </div>
            <div class="layui-form-item">
                <button class="layui-btn layui-btn-fluid" lay-filter="LAYSubmitLogin" lay-submit>登 入</button>
            </div>
        </div>
    </div>
    <!--        <div class="layui-trans layadmin-user-login-footer">-->
    <!--            <p>© All Rights Reserved</p>-->
    <!--        </div>-->
</div>
<script id="loginTpl" type="text/html">
    {{# if(d.captcha){ }}
    <div class="layui-form-item">
        <div class="layui-row">
            <div class="layui-col-xs7">
                <label class="layadmin-user-login-icon layui-icon layui-icon-vercode"
                       for="LAY-user-login-vercode"></label>
                <input type="text" name="captcha" lay-verify="required" placeholder="图形验证码" class="layui-input">
                <input type="hidden" id="captcha_id" name="captcha_id" value="">
            </div>
            <div class="layui-col-xs5">
                <div style="margin-left: 10px;">
                    <img src="{{= layui.setter.request.domainName }}/api/Common/captcha?id={{= generateMixed(16) }}&server=true"
                         class="layadmin-user-login-codeimg" id="LAYGetVercode">
                </div>
            </div>
        </div>
    </div>
    {{# } }}
</script>
<script src="../web/res/js/login/login.js"></script>
